package com.example.mapper;

import com.example.entity.vo.CmsmqVo;
import com.example.entity.vo.DocVo;
import com.example.entity.vo.LotVo;
import com.example.entity.yifei.Cmsmq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-27
 */
public interface CmsmqMapper extends BaseMapper<Cmsmq> {

    List<CmsmqVo> selectVoByMq003(String mq003);

    @Select("${sql}")
    String getIdByType(String sql);

    List<DocVo> listDoc(String doc,String docType);

    @Select("SELECT MB022,MB127,MB023,MB024,MB017 FROM INVMB WHERE MB001 = #{orderNo}")
    Map<String,Object> isLot(String orderNo);

    List<LotVo> getLot(String orderNo, String stashNo);

    @Select("${sql}")
    Integer getIdByType2(String string);
}
